import request from '@/utils/request'

// 时美物流单列表
export function list(data) {
  return request({
    url: 'logistics/index',
    method: 'post',
    data
  })
}

// 时美修改信息
export function modifyInfo(data) {
  return request({
    url: 'logistics/shimeiModifyInfo',
    method: 'post',
    data: data
  })
}

// 时美批次
export function taskList(data) {
  return request({
    url: 'logistics/shimeiTaskList',
    method: 'post',
    data
  })
}

// 时美添加批次
export function addTask(data) {
  return request({
    url: 'logistics/shimeiAddTask',
    method: 'post',
    data: data
  })
}

// 时美批次信息
export function taskInfo(data) {
  return request({
    url: 'logistics/shimeiTaskInfo',
    method: 'post',
    data: data
  })
}

// 时美加入订单列表
export function addOrderlist(data) {
  return request({
    url: 'logistics/shimeiPrepareOrderlist',
    method: 'post',
    data: data
  })
}

// 时美加入订单
export function addOrder(data) {
  return request({
    url: 'logistics/shimeiAddOrder',
    method: 'post',
    data: data
  })
}

// 时美推送订单
export function pushOrder(data) {
  return request({
    url: 'logistics/shimeiPushOrder',
    method: 'post',
    data: data
  })
}

// 时美取消订单
export function cancelOrder(data) {
  return request({
    url: 'logistics/shimeiCancelOrder',
    method: 'post',
    data: data
  })
}

// 时美移除订单
export function moveOrder(data) {
  return request({
    url: 'logistics/shimeiMoveOrder',
    method: 'post',
    data: data
  })
}

// 时美完成批次
export function finishTask(data) {
  return request({
    url: 'logistics/shimeiFinishTask',
    method: 'post',
    data: data
  })
}

// 时美撤销批次
export function cancelTask(data) {
  return request({
    url: 'logistics/shimeiCancelTask',
    method: 'post',
    data: data
  })
}

// 中外运物流列表
export function sinotransList(data) {
  return request({
    url: 'logistics/sinotransIndex',
    method: 'post',
    data
  })
}

// 中外运物流推送
export function sinotransPush(data) {
  return request({
    url: 'logistics/sinotransSinotransPush',
    method: 'post',
    data: data
  })
}

// 下载模板
export function downTemplate(data) {
  return request({
    url: 'logistics/sinotransDownTemplate',
    method: 'post',
    data: data
  })
}

// 导入物流信息
export function importLogistics(data) {
  return request({
    url: 'logistics/sinotransImportLogistics',
    method: 'post',
    data: data
  })
}

